package org.jeecg.common.modules.doctor.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * @Description: doctor_account_flow
 * @Author: jeecg-boot
 * @Date:   2020-08-22
 * @Version: V1.0
 */
@Data
@TableName("doctor_account_flow")
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="doctor_account_flow对象", description="doctor_account_flow")
public class DoctorAccountFlow implements Serializable {
    private static final long serialVersionUID = 1L;

	/**id*/
	@TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "id")
    private String id;
	/**账户id*/
	@Excel(name = "账户id", width = 15)
    @ApiModelProperty(value = "账户id")
    private String accountId;
	/**金额*/
	@Excel(name = "金额", width = 15)
    @ApiModelProperty(value = "金额")
    private BigDecimal amount;
	/**流水类型  1收入 2退款 3提现*/
	@Excel(name = "流水类型  1收入 2退款 3提现", width = 15)
    @ApiModelProperty(value = "流水类型  1收入 2退款 3提现")
    private Integer flowType;
	/**createTime*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "createTime")
    private Date createTime;
	/**关联id，收入关联结算单表、退款关联订单表，提现关联提现信息表*/
	@Excel(name = "关联id，收入关联结算单表、退款关联订单表，提现关联提现信息表", width = 15)
    @ApiModelProperty(value = "关联id，收入、退款关联订单表，提现关联提现信息表")
    private String relationId;

    /**流水状态  0交易中  1交易成功  2交易失败*/
    @Excel(name = "流水状态  0交易中  1交易成功  2交易失败", width = 15)
    @ApiModelProperty(value = "流水状态  0交易中  1交易成功  2交易失败")
	private Integer status;
}
